package work.xkong.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @NAME: ResponseCode
 * @USER: NuanYang
 * @create: 2022/11/21 21:26
 */
@AllArgsConstructor
public enum ResponseCode {
    SUCCESS(1,"成功"),
    FAIL(2,"失败"),
    NOT_LOGIN(3,"未登录"),
    FREEZE(4,"冻结");

    private int code;
    private String msg;

    ResponseCode(int code) {
        this.code = code;
    }

    ResponseCode(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
